package com.example.entity;

//所有角色的父类
//所有的账号都要有以下属性
public class Account {

    private String username;
    private String password;
    private String role;
    private String newPassword;
    private String token;

    public Account() {
    }

    public Account(String username, String password, String role, String newPassword, String token) {
        this.username = username;
        this.password = password;
        this.role = role;
        this.newPassword = newPassword;
        this.token = token;
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return role
     */
    public String getRole() {
        return role;
    }

    /**
     * 设置
     * @param role
     */
    public void setRole(String role) {
        this.role = role;
    }

    /**
     * 获取
     * @return newPassword
     */
    public String getNewPassword() {
        return newPassword;
    }

    /**
     * 设置
     * @param newPassword
     */
    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    /**
     * 获取
     * @return token
     */
    public String getToken() {
        return token;
    }

    /**
     * 设置
     * @param token
     */
    public void setToken(String token) {
        this.token = token;
    }

    public String toString() {
        return "Account{username = " + username + ", password = " + password + ", role = " + role + ", newPassword = " + newPassword + ", token = " + token + "}";
    }
}

